
import requests, re


url = 'http://www.xbiquge.la/xiaoshuodaquan/'
r = requests.get(url,headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36'})

r.encoding = r.apparent_encoding

html = r.text

keywords = "神"

regex = f'<li><a href="(.*?)">(.*?{keywords}.*?)</a></li>'

info = re.findall(regex, html)

print(info)
